﻿using System.Collections.Generic;
using Core.Domain.Entities;

namespace Core.Interfaces
{
  ///<summary>
  ///</summary>
  public interface ICommunityImporter
  {
    ///<summary>Load the XML. Check <see cref="XmlCommunityImporter.ImportSuccessful"/> and <see cref="XmlCommunityImporter.ErrorMessages"/> after loading.
    ///</summary>
    ///<param name="communityFilePath"></param>
    ///<returns></returns>
    void ImportCommunity(string communityFilePath);

    ///<summary>
    ///</summary>
    List<string> ErrorMessages { get; }

    ///<summary>
    ///</summary>
    bool Successful { get; }
    
    ///<summary>
    ///</summary>
    bool SourceExists { get; set; }

    ///<summary>result of import
    ///</summary>
    ICommunity Community { get; }
  }
}